package com.cskaoyan.bean.wx.home.vo;

import com.cskaoyan.bean.MarketTopic;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 创建日期: 2022/05/08 14:57
 *
 * @author JinLu Zhou
 */
@Data
public class TopicVo {
    Integer id;
    String picUrl;
    BigDecimal price;
    String readCount;
    String subtitle;
    String title;


    public void set(MarketTopic marketTopic) {
        setId(marketTopic.getId());
        setPicUrl(marketTopic.getPicUrl());
        setPrice(marketTopic.getPrice());
        setReadCount(marketTopic.getReadCount());
        setSubtitle(marketTopic.getSubtitle());
        setTitle(marketTopic.getTitle());
    }
}
